package com.newtcdemo.ui;

import android.os.Bundle;
import android.os.Handler;
import android.support.v7.app.AppCompatActivity;
import android.util.Log;

import com.newtcdemo.CustomViews.todayTopThreeChart.TodayTopThreeChart;
import com.newtcdemo.R;

/**
 *
 */
public class TodayTopThreeActivity extends AppCompatActivity {

    TodayTopThreeChart layoutTodayTopThreeChart;

    private Handler handler=new Handler();

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        Log.e("TodayTopThreeActivity","onCreate");
        setContentView(R.layout.activity_today_top_three);
        layoutTodayTopThreeChart=(TodayTopThreeChart)findViewById(R.id.layoutTodayTopThreeChart);
        layoutTodayTopThreeChart.setTypeTitle("近7日接待数");
        layoutTodayTopThreeChart.setProgressValue(0f,7f,5f,8f,0f,15f,15f);
        layoutTodayTopThreeChart.setDateValue("4-21","4-22","4-23","4-24","4-25","4-26","4-27");
        handler.post(new Runnable() {
            @Override
            public void run() {
                layoutTodayTopThreeChart.refreshView();
            }
        });

    }

    @Override
    protected void onStart() {
        super.onStart();
//        Log.e("TodayTopThreeActivity","onStart");
    }

    @Override
    protected void onResume() {
        super.onResume();
//        Log.e("TodayTopThreeActivity","onResume");

    }

    @Override
    protected void onPause() {
        super.onPause();
//        Log.e("TodayTopThreeActivity","onPause");

    }

    @Override
    protected void onRestart() {
        super.onRestart();
//        Log.e("TodayTopThreeActivity","onRestart");

    }

    @Override
    protected void onStop() {
        super.onStop();
//        Log.e("TodayTopThreeActivity","onStop");

    }

    @Override
    protected void onDestroy() {
        super.onDestroy();
//        Log.e("TodayTopThreeActivity","onDestroy");

    }
}
